import datetime
from applications.extensions import db


class Scene(db.Model):
    __tablename__ = 'admin_scene'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='id')
    content = db.Column(db.String(20), comment='情景名称')
    version = db.Column(db.String(20), comment='情景版本')
    Sceneadmin = db.Column(db.String(20), comment='情景管理员')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='添加时间')
    enable = db.Column(db.Integer, default=0, comment='启用')